package model.information;

import java.io.Serializable;
import java.util.Observable;

/**
 * A class that represents a research note.
 * @author Tobias Møller Kjærsgaard
 * @author Hjalte Blichfeldt Flyger
 * @author Gitte Simonsen
 * @author Claus Lund
 */
public class Research extends Observable implements Serializable {
    private String title;
    private String text;

    public Research(String title, String text) {
        this.title = title;
        this.text = text;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
        this.setChanged();
        this.notifyObservers("research");
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
        this.setChanged();
        this.notifyObservers("research");
    }

    @Override
    public String toString() {
        return title;
    }

}